package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * @author 佘赛飞
 * @create 2021 -11 -18 9:41 PM
 */
@Controller
@RequestMapping("/list")
public class ListController {
    @RequestMapping("/deletelistUser")
    public ModelAndView deletelistUser(@RequestParam("ids") List<Integer> ids) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("ids", "传入的list参数为:" + ids);
        modelAndView.setViewName("listview");
        return modelAndView;
    }
}
